CONTENTS | INDEX | PREV | NEXT
NAME
_MathBase auto-open
SYNOPSIS
FUNCTION
If the _MathBase base variable is referenced (i.e. extern) but not
declared then _MathBase will be automatically declared in the
mathlib module of auto.lib. Additionally, auto.lib adds routines to
the autoinit and autoexit sequences called by c.a that
automatically opens "math.library" before _main and closes it after
_exit.
If the auto-open fails the program will be aborted before _main is
ever called.
The autoexit routine that closes the library first checks to see if
the base variable is NULL and skips trying to close the library if
so.
NOTE
DICE uses the autoinit feature to automatically open and close
floating point libraries that are indirectly referenced by
fp operations.
EXAMPLE
#include <stdlib.h>
main()
{
float f;
f = atof("1.234");
}
SEE ALSO